<? if($this->show==1):?>
<div class="part-title"><h1>评论</h1></div>
<div class="clearfix">&nbsp;</div>
<div class="comment_main">
<div class="sm-table">
<form id='add_comment_<?=$this->strtime;?>' name='add_comment_<?=$this->strtime;?>' action="~comment.index.send_comment" method="post" onkeyup="tes_test()"  >
<table>
<tr>
<td>
<div id="content_div_<?= $this->strtime;?>"></div>
<script type="text/javascript">
e_fontsize = false;
e_face = false;
e_CommentFace = true;
e_media = false;
e_bold = false;
e_InsertOrderedList = false;
e_italic = false;
e_underline = false;
e_JustifyLeft = false;
e_JustifyCenter = false;
e_JustifyRight = false;
e_font = false;
e_color = false;
e_backcolor = false;
e_img = true;
e_link = false;
e_uploadimg = false;
e_piclink = false;
e_toolbarbg = false;
content_id_<?= $this->strtime;?> = new webEditor(
	"content_id_<?= $this->strtime;?>",
	$("content_div_<?= $this->strtime;?>") , 
	420, 
	80
);

content_id_<?= $this->strtime;?>.init('');
//e_onkeypress = comments.onkeypress(content_id_<?= $this->strtime;?>,'<?= $this->strtime;?>');
//e_onkeypress = comments.keypress('');

</script>
<input id='res_id' name='res_id' type="hidden" value="<?= $this->res_id ?>"  >
<input id='res_uid' name='res_uid' type="hidden" value="<?= $this->res_uid ?>"  >
<input id='qqq' type="hidden" name="content" value="" />
</textarea>
</div>
</td>
</tr>
<tr>
<td class="send-submit">
<div class="send-submit-mr">
<div  id='add_comment_<?=$this->strtime;?>_msg'>
</div>
<span class="send-submit-mr-text">字数限制1000个</span>
<button class="cbtn" type="button" type="button" onclick="javascript: comments.add_comment('add_comment_<?=$this->strtime;?>', content_id_<?= $this->strtime;?>)" >发表</button>
</div>
</td>
</tr>
</form>
</table>
</div>


<?if ($this->data):?>
<div class="comment">
<?foreach($this->data as $thread):?>
<?include('thread_row.phtml');?>
<?endforeach;?>
</div>
<?endif?>



<div class="clearfix">&nbsp;</div>
</div> <!-- comment_main -->
</div>
<?endif;?>